from selenium.webdriver.common.by import By


class PageEcshopFrontMyOrder():
    def __init__(self, driver):
        self.driver = driver
        # 元素定位符loc
        self.loc_ele_my_order = (By.XPATH, "/html/body/div[7]/div[1]/div/div/div/div/a[3]")
    #我的账户
    def ele_my_order(self):
        self.driver.find_element(*self.loc_ele_my_order).click()#点击【我的订单】